package com.healthcarex.hip.saas.security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author  ChenPan
 * @date   2018/6/27 10:23
 * description:
 */
public interface IPermissionService {

  /**
   * 判断请求是否有权限
   *
   * @param request HttpServletRequest
   * @param authentication 认证信息
   * @return 是否有权限
   */
  boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
